<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>

		<div id="app">
		<h4>订单信息</h4>
		<p>订单编号:{{order.orderId}}</p>
		<hr>

		
	<!-- 评价 -->
		<p>
评价类型：<input type="radio" value="1" name="common_type">好评
		<input type="radio" value="0" name="common_type">中评
		<input type="radio" value="-1" name="common_type">差评
		
</p>

<!-- 是否匿名 -->
<p>
	是否匿名： <input type="radio" value="1" name="is_annoymous">匿名


<input type="radio" value="0" name="is_annoymous">不匿名

</p>

<!-- 评价内容  -->
 <p>
	 评价内容：<textarea rows="4" cols="40" name="comm_content">

	 </textarea>
 </p>


			</li>


<!-- 商品二的评价 -->

	
		</ul>
		<input  type="submit" value="提交" style="text-align:center" onclick="submit()" >
		</div>
		
	


		<script src="static/js/cookie_utils.js"></script>
		<!-- element-ui需要引入vue.js -->
		<script src="static/js/vue.min.js"></script>
		<!-- 引入组件库 -->
         <script src="https://unpkg.com/element-ui/lib/index.js"></script>
		<script src="static/js/axios.min.js"></script>
		<script src="static/js/utils.js"></script>


       <script type="text/javascript">
		   function submit(){
			   window.location.href="comment-success.html";
		   }
	new Vue({
		el:"#app",
		data:{
			order:{},

		},
		created() {
			var jsonstr=localStorage.getItem("order");
			console.log(jsonstr);
			if(jsonstr!=null){
// 把json数据转换为对象
				this.order=eval("("+jsonstr+")");
				console.log(this.order);
			}
		},


	})
	</script>




		
	</body>
</html>
